<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>border-image</title>
    <style>
        html,
        body {
            width: 100%;
            height: 100%;
            display: flex;
        }

        .skulls {
            position: relative;
            width: 600px;
            height: 200px;
            margin: auto;
            border: 24px solid;
            border-image: url(https://skullctf.com/images/skull-border.svg);
            /* image-slice这个属性是根据img大小来调整的 */
            border-image-slice: 32;
            border-image-repeat: round;
        }
    </style>
</head>

<body>
    <div class="skulls"></div>

</body>

</html>